package com.duomai.myapplication.adapter;

import android.widget.ImageView;

import com.bumptech.glide.Glide;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.duomai.myapplication.R;
import com.example.admin.SQLite.BaoMing;
import com.example.admin.SQLite.Complaint;

public class EventsAdapter extends BaseQuickAdapter<BaoMing, BaseViewHolder> {

    public EventsAdapter() {
        super(R.layout.item_events);
    }

    @Override
    protected void convert(BaseViewHolder helper, BaoMing str) {
        helper.setText(R.id.tvStatu, str.title);
        ImageView ivImage = helper.getView(R.id.ivImage);
        Glide.with(mContext).load(str.imgPath).into(ivImage);
    }

}